<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>动脑学院</title>
  <link rel="stylesheet" href="./node_modules/normalize.css/normalize.css" media="screen" title="no title">
  <link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" media="screen" title="no title">
  <link rel="stylesheet" href="./css/dongnao.css" media="screen" title="no title">
</head>
<body>
  <br>
  <br>
  <div class="container">
    <div class="row">
      <div class="col-md-6">
        <div class="panel panel-primary">
          <div class="panel-heading">
            面板
          </div>
          <div class="panel-body">
            Basic panel example

          </div>
          <ul class="list-group">
            <li class="list-group-item">0001</li>
            <li class="list-group-item">0002</li>
            <li class="list-group-item">0003</li>
            <li class="list-group-item">0004</li>
            <li class="list-group-item">0005</li>
          </ul>
        </div>
      </div>
      <div class="col-md-6">
        <div class="panel panel-primary">
          <div class="panel-heading">
            进度条
          </div>
          <div class="panel-body">
            <div class="progress">
              <div class="progress-bar progress-bar-success" style="width: 35%">
                <span class="sr-only">35% Complete (success)</span>
              </div>
              <div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
                <span class="sr-only">20% Complete (warning)</span>
              </div>
              <div class="progress-bar progress-bar-danger" style="width: 10%">
                <span class="sr-only">10% Complete (danger)</span>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="col-md-6">
        <div class="panel panel-primary">
          <div class="panel-heading">
            徽章
          </div>
          <div class="panel-body">
            <span class="badge">30</span>
            <br>
            <button type="button" class="btn btn-lg btn-primary" name="button">Message <span class="badge">30</span></button>
            <ul class="list-group">
              <li class="list-group-item">0001 <span class="badge">42</span></li>
              <li class="list-group-item">0002</li>
              <li class="list-group-item">0003</li>
              <li class="list-group-item">0004</li>
              <li class="list-group-item">0005</li>
            </ul>
            <span class="label label-default">
              Success
            </span>
          </div>
        </div>
      </div>
      <div class="col-md-6">
        <div class="panel panel-primary">
          <div class="panel-heading">
            模态框
          </div>
          <div class="panel-body">
            <button type="button" id="showModal" data-toggle="modal" class="btn btn-primary btn-lg" name="button">
              大模态框
            </button>
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel panel-primary">
        <div class="panel-heading">
          标签页
        </div>
        <div class="panel-body">
          <ul class="nav nav-tabs" role="tablist" id="myTab">
            <li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
            <li role="presentation"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
            <li role="presentation"><a href="#messages" role="tab" data-toggle="tab">Messages</a></li>
            <li role="presentation"><a href="#settings" role="tab" data-toggle="tab">Settings</a></li>
          </ul>

          <!-- Tab panes -->
          <div class="tab-content">
            <div role="tabpanel" class="tab-pane fade active" id="home">home
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
              <p>home</p>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="profile">profile</div>
            <div role="tabpanel" class="tab-pane fade" id="messages">messages</div>
            <div role="tabpanel" class="tab-pane fade" id="settings">settings</div>
          </div>
        </div>
      </div>
    </div>
  </div>

  </div>
  <div class="modal fade" id="modal">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
          <h4 class="modal-title">模态框</h4>
        </div>
        <div class="modal-body" id="modalBody">
          <p>One fine body&hellip;</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->

  <script src="./node_modules/jquery/dist/jquery.min.js"></script>
  <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
  <style media="screen">
    .tab-pane {
      height: 100px;
      overflow-y: auto;
    }
  </style>
  <script>
    $(function() {
      // $('#modal').modal({
      //   keyboard: false,
      //   backdrop: 'static'
      // });
      $("#showModal").on("click", function(e) {
        $("#modalBody").html("模态框内容");
        // $("#modal").modal("show");
        $("#myTab a:last").tab("show");
      });

      $('#modal').on('hidden.bs.modal', function (e) {
        alert("模态框被关闭了");
      })
    });
  </script>
</body>
</html>
